package monster.com.cvh.event;

import java.util.Observable;

/**
 * @author: pengguanming
 * @data: 2018/4/24
 * @function:抛出刷新简历预览事件
 */
public class RefreshResumePreviewEvent extends Observable {
    private volatile static RefreshResumePreviewEvent instance;

    private RefreshResumePreviewEvent() {
    }

    public static RefreshResumePreviewEvent getInstance() {
        if (instance == null) {
            synchronized (RefreshResumePreviewEvent.class) {
                instance = new RefreshResumePreviewEvent();
            }
        }
        return instance;
    }

    public void onRefreshResumePreview() {
        setChanged();
        notifyObservers();
    }
}
